# scores = [8, 9, 7, 6, 8, 9, 10, 7, 8, 9]

# scores.remove(max(scores))
# scores.remove(min(scores))

# average_score = sum(scores) / len(scores)

# print("平均分为:", average_score)


# 获取评委打分
scores = []
for i in range(10):
    score = float(input(f"请输入第{i + 1}个评委的分数: "))
    scores.append(score)

# 去掉最高分和最低分
scores.remove(max(scores))
scores.remove(min(scores))
print(f"去掉最低分:{min(scores)}")
print(f"去掉最高分:{max(scores)}")
# 计算平均分
average_score = sum(scores) / len(scores)
print(f"选手的最终平均得分为: {average_score}")